{% extends "base.html" %}

{% block title %}留言墙{% endblock %}
{% block content %}
<div class="ui container">
	<h1>班级留言墙</h1>
	<br/>

	<h4 class="ui block top attached header _header_1efka_1">
        <div class="content">班级留言墙</div>
    </h4>
    <div class="ui bottom attached segment _segment_1efka_4">
        <table class="ui unstackable very basic table _table_1efka_10">
            <thead class="">
                <tr class="">
                    <th class="">标题</th>
                    <th class="three wide ">日期</th>
                </tr>
            </thead>
            <tbody class="">
                {% for message in all_message %}
                {% if not message.message == 'None' %}
                <tr class="">
                    <td class=""><a class=" " href="{% url 'message:look' message.id %}">{{ message.message|linebreaksbr }}</a>
                    </td>
                    <td class="one wide ">{{ message.date }}</td>
                </tr>
                {% endif %}
                {% endfor %}

            </tbody>
        </table>
    </div>
	

    <a href="{% url 'message:editor' %}" class="ui button " role="button">编辑我的留言</a>
	<a href="{% url 'message:random' %}" class="ui button" role="button">随机一条留言</a>	</div>
{% endblock %}